package com.th.coupon.common.exception;

import com.th.coupon.common.vo.ResultData;
import lombok.Data;

/**
 * 通用异常
 * @author 涂航
 */
@Data
public class BaseCloudException extends Exception{

    ResultData resultData;

    public BaseCloudException(ResultData resultData){
        super(resultData.message());
        this.resultData = resultData;
    }

    public BaseCloudException(String message){
        super(message);
    }

}
